package com.gitee.huanminabc.utils_tools.config_refresh.event;

import org.springframework.context.ApplicationEvent;

public class ConfigChangeEvent  extends ApplicationEvent {
    private String key;
    private String  value;

    /**
     *
     * @param source 新的配置全部数据
     * @param key 变化的key
     * @param value 变化的值
     */
    public ConfigChangeEvent(Object source, String key, String value) {
        super(source);
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
